import {postUrl,post} from '@/utils/request.js'

/**
* 第一步授权登录
*/
export async function postAutologin(data) {
  return postUrl(`/applet/user/autologin?code=${data.code}&encryptedData=${data.encryptedData}&iv=${data.iv}`)
}
//第二步认证
export async function activateAccount(data) {
  return post(`/applet/reimbursement/person/activateAccount`,data)
}

//手机号密码登录
export async function loginAccountAndPwd(data) {
  return postUrl(`/applet/user/loginAccountAndPwd?account=${data.account}&pwd=${data.pwd}&number=${data.number}`)
}
//忘记密码
export async function forgetUserInfo(data) {
  return post(`/applet/user/forgetUserInfo`,data)
}